﻿(function ($) {
    var chart_settings = {
        chartmainId: "chart-main",
        title: {
            x: -20
        },
        xAxis: {
            title: {
                text: ""
            }
        },
        yAxis: {
            title: {
                text: ""
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: ""
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        }
    }
    $.extend($, {
        createChart: function (args) {
            args = $.extend({}, chart_settings, args);
            $("#"+args.chartmainId).highcharts(args);
        }
    });
})(jQuery);